package com.example.tys.baseapplication.net_tcp.frame.packet;

import java.net.InetSocketAddress;

/**
 *
 * @author tys
 * @date 2019/4/29
 */

public class UdpPacket extends BasePacket {

    /**
     * 目标地址
     */
    private InetSocketAddress targetAddress;

    public UdpPacket(String uniqueId, InetSocketAddress targetAddress) {
        super(uniqueId);
        this.targetAddress = targetAddress;
    }

    public UdpPacket(String uniqueId) {
        super(uniqueId);
    }


    public InetSocketAddress getTargetAddress() {
        return targetAddress;
    }

    public void setTargetAddress(InetSocketAddress targetAddress) {
        this.targetAddress = targetAddress;
    }

}
